<?php
/*
 * Created by: Dikkehein <Clemens Wijnekus, c.wijnekus@gmail.com>
 */
?>

<section id="main" class="column">

    <article class="module width_full">
        <header><h3 class="tabs_involved">Gebruikers</h3></header>
        <div class="tab_container">
            <table class="tablesorter" cellspacing="0"> 
                <thead> 
                    <tr> 
                        <th></th> 
                        <th>ID</th> 
                        <th>Voornaam</th> 
                        <th>Achternaam</th>
                        <th>Email</th>
                        <th>Voorzitter</th>
                        <th colspan="2">Acties</th> 
                    </tr> 
                </thead> 
                <tbody>
                    <?php foreach ($query->result() as $row) : ?>
            <tr>
                <td><input type="checkbox"></td>
                <td><?php echo $row->id; ?></td>
                <td><?php echo $row->voornaam; ?></td>
                <td><?php echo $row->achternaam; ?></td>
                <td><?php echo $row->email; ?></td>
                <td><?php echo($row->voorzitter ? 'Ja' : 'Nee'); ?></td>
                <td><?php echo anchor ('gebruiker/wijzigen/' . $row->id, 'Wijzigen'); ?></td>
                <td><?php echo anchor ('gebruiker/verwijderen/' . $row->id, 'Verwijderen'); ?></td>
            </tr>
    <?php endforeach; ?>
                </tbody> 
            </table>
        </div><!-- end of Not Done AP -->
    </article><!-- end of messages article -->
    <div class="spacer"></div>
</section>